
from appium.webdriver.common.mobileby import MobileBy

from ui_framework_demo.common.basepage import BasePage
from ui_framework_demo.page.address_book_package import AddressBookPackage


class MainPage(BasePage):

    def get_address_book_package(self):
        """进入通讯录页面"""
        self.driver.find_element(MobileBy.XPATH,"//*[@text='通讯录']").click()
        return AddressBookPackage(self.driver)
